home *** CD-ROM | disk | FTP | other *** search
/ Grand Slam 3 / Grand Slam 3.iso / 011 / mom131.arj / INSTALL.BAT < prev    next >
DOS Batch File  |  1995-01-13  |  1KB  |  53 lines

  1. @echo off
  2. cls
  3.  
  4. REM Checkimg for proper command line usage.
  5. if "%1" == "" goto usage
  6.  
  7. REM Checking for existing directory.
  8. if not exist %1\viceroy.exe goto usage2
  9.  
  10. REM Checking for Proper Drive
  11. if not exist colon21.zip goto usage3
  12.  
  13. REM Installing UPDATE Software
  14. colon21 -o %1
  15.  
  16. Rem Checking for errors
  17. if errorlevel 1 goto error1
  18.  
  19. goto clean
  20.  
  21. :usage
  22. cls
  23. echo You must supply the DRIVE and DIRECTORY where COLONIZATION is
  24. echo located.   EXAMPLE:  INSTALL C:\MPS\COLONIZE
  25. goto EOF
  26.  
  27. :usage2
  28. cls
  29. echo Unable to Location COLONIZATION in the %1 directory.  Please
  30. echo double check the directory and try again.
  31. goto EOF
  32.  
  33. :usage3
  34. cls
  35. echo This install must be run from the same DRIVE/DIRECTORY that the 
  36. echo Colonization UPDATE files are located in.  Please change to that
  37. echo DRIVE/DIRECTORY and run INSTALL again.
  38. goto EOF
  39.  
  40. :error1
  41. cls
  42. echo An Error has occured while unzipping the software, you may have
  43. echo a bad copy.  Please try the install again, if it fails then get
  44. echo another copy of this update.
  45. goto EOF
  46.  
  47. :end
  48. echo Installation Complete!
  49. echo  
  50.  
  51. :EOF
  52.  
  53.